package values.skill
{
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class LogicEffectValue extends EventDispatcher implements ILogicEffectValue
	{
		
		/**
		 * 无视闪避 
		 */		
		public static const IGNORE_DODGE:String = "ignore_dodge";
		
		/**
		 * 无视抵抗 
		 */		
		public static const IGNORE_RESIST:String = "ignore_resist";
		
		/**
		 * 无视格挡 
		 */		
		public static const IGNORE_BLOCK:String = "ignore_block";
		
		/**
		 * 必定压制 
		 */		
		public static const MUST_SUPPRESS:String = "must_suppress";
		
		public function LogicEffectValue()
		{
			super();
		}
		
		private var logicTemp:LogicEffectTemplateValue;
		
		public function init(skillValue:SkillValue):void
		{
			logicTemp = skillValue.template.logic;
		}
		
		public function dispose():void
		{
			logicTemp = null;
		}
		
		public function get type():String
		{
			return logicTemp.baseType;
		}
	}
}